package com.sg.dto.integration.component;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc CountAchieveNumdataSetDto
 * @使用场景
 */
@Data
public class CountAchieveNumdataSetDto extends BaseDto implements Serializable {

    /**
     * 通用主键ID
     */
    @ApiModelProperty("通用主键ID")
    private String commPrimaryKey;

    /**
     * 是否已完成 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否已完成")
    private String isComplete;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CountAchieveNumdataSetDto that = (CountAchieveNumdataSetDto) o;
        return (
                commPrimaryKey == that.commPrimaryKey && isComplete == that.isComplete
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), commPrimaryKey, isComplete);
    }

}
